package com.jzlin.funhub.framework.core.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * 服务异常.
 *
 * @author linjz
 * @since 2024/11/6
 */
@Getter
@Setter
public class AppException extends RuntimeException {
    /**
     * 返回码
     */
    private Integer code = 500;

    public AppException(String message) {
        super(message);
    }

    public AppException(Integer code, String message) {
        super(message);
        this.code = code;
    }
}
